package com.ifugle.rap.application.api;

import java.util.List;
import com.ifugle.rap.application.model.UserMaterial;
import org.apache.ibatis.annotations.Mapper;

public interface UserMaterialApi {

    int deleteByPrimaryKey(Long id);

    int insert(UserMaterial record);

    int insertSelective(UserMaterial record);

    UserMaterial selectByPrimaryKey(Long id);

    List<UserMaterial> selectByUserId(Long userId);

    int updateByPrimaryKeySelective(UserMaterial record);

    int updateByPrimaryKey(UserMaterial record);

    UserMaterial selectByUserIdAndmaterialId(Long userId,Long materialId);
}
